package io.itit.ecp.admin.provide.action.req;

import io.itit.grass.common.provide.action.validation.IAdd;
import io.itit.grass.common.provide.action.validation.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;
import java.io.Serializable;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：产品类型参数
 * @Date：Create by 2023-12-02 20:13:28
 */
@Data
@ToString
@ApiModel("产品类型参数")
public class ProductTypeReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @Null(groups = IAdd.class)
    @NotBlank(groups = IUpdate.class)
    @ApiModelProperty("主键")
    private String id;

    @NotBlank
    @ApiModelProperty("产品编号")
    private String productTypeCode;

    @NotBlank
    @ApiModelProperty("产品名称")
    private String productTypeName;

    @ApiModelProperty("排序号")
    private Integer sort;

    @NotBlank
    @ApiModelProperty("机构Id")
    private String deptId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("产品模型Ids，多个用 , 分隔")
    private String modelIds;

}
